package etc.obu.service.activity;

import android.bluetooth.BluetoothAdapter;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import etc.obu.service.IObuFacade;
import etc.obu.service.R;
import etc.obu.service.impl.ObuFacadeImpl;
import etc.obu.service.impl.ResultHandlerImpl;

public class MainActivity extends AppCompatActivity {
    private IObuFacade obuFacade = ObuFacadeImpl.getInstance(new ResultHandlerImpl());
    private BluetoothAdapter ble = BluetoothAdapter.getDefaultAdapter();

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        obuFacade.initialize(this);
        obuFacade.connectDevice(this);
        obuFacade.getDeviceInformation();
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}
